<%-- 
    Document   : usuario
    Created on : 08/03/2014, 16:00:44
    Author     : jordan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Novo Usuario</title>
    </head>
    <body>
        <c:import url="menu.jsp" />
        <c:set var="login" value=
            "<%=(
                session.getAttribute("login")
            )%>"/>
        <c:if test="${login!=null&&login!=''}">
            <c:redirect url="menu.jsp?error=25,W;${id}"/>
        </c:if>
        <h1>Novo Usuário</h1>
        <p>Por favor informe seus dados.</p>
        <form action="confirmacaoUsuario.jsp" method="post">
            <table>
                <tr>
                    <td>Nome do Usuário:</td>
                    <td><input type="text" id="nome" name="nome"/></td>
                </tr>
                <tr>
                    <td>Login de Acesso:</td>
                    <td><input type="text" id="login" name="login"/></td>
                </tr>
                <tr>
                    <td>Email:</td>
                    <td><input type="text" id="email" name="email"/></td>
                </tr>
                <tr>
                    <td>Tipo:</td>
                    <td>
                        <select id="tipoUsuario" name="tipoUsuario">
                            <option value="0">Selecione</option>
                            <option value="1">Coletor</option>
                            <option value="2">Cliente</option>
                            <option value="3">Administrador</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Senha:</td>
                    <td><input type="password" id="senha" name="senha"/></td>
                </tr>
                <tr><td>Confirma Senha:</td>
                    <td><input type="password" name="senhaConfirma"/></td>
                </tr>
                <tr>
                    <td></td><td><button>Salvar Dados</button></td>
                </tr>
            </table>
        </form>
    </body>
</html>
